package com.example.demo.vo;

import com.diboot.core.binding.annotation.*;
import com.example.demo.entity.Sku;
import com.example.demo.entity.Goods;
import com.diboot.iam.entity.IamUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* sku ListVO定义
* @author MyName
* @version 1.0
* @date 2024-01-17
 * Copyright © MyCompany
*/
@Getter @Setter @Accessors(chain = true)
public class SkuListVO extends Sku  {
    private static final long serialVersionUID = -8839385246045030065L;

    /** 
    * 关联字段 名称：Goods.name
    */
    @BindField(entity = Goods.class, field = "name", condition = "this.goods_id=id")
    private String goodsName;

    /** 
    * 关联字段 系统用户.真实姓名：IamUser.realname
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    /** 
    * 关联字段 系统用户.真实姓名：IamUser.realname
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by=id")
    private String updateByName;

}